package com.program.beautymakeup.service;

import com.program.beautymakeup.domain.entity.PortfolioMakeup;
import com.program.beautymakeup.domain.entity.PortfolioType;
import com.program.beautymakeup.domain.vo.ResultInfo;
import com.program.beautymakeup.mapper.PortfolioMakeupMapper;
import com.program.beautymakeup.mapper.PortfolioTypeMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author bytedance
 * @ClassName PortfolioTypeService.java
 * @Description TODO
 * @createTime 2023年02月09日 22:23:00
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class PortfolioTypeService {

    @Autowired
    private PortfolioTypeMapper portfolioTypeMapper;

    @Autowired
    private PortfolioMakeupMapper portfolioMakeupMapper;

    public List<PortfolioType> typeList() {
        return portfolioTypeMapper.selectAll();
    }

    public List<PortfolioMakeup> getPortfolioMakeup(Integer userId) {
        List<PortfolioMakeup> portfolioMakeupList = portfolioMakeupMapper.selectByUserId(userId);
        return portfolioMakeupList;
    }
}
